package com.qsbc.pygram.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qsbc.pygram.entity.Checkpoint;
import com.qsbc.pygram.entity.CheckpointContent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2023-02-13
 */
@Mapper
public interface CheckpointContentMapper extends BaseMapper<CheckpointContent> {

    Page<CheckpointContent> findPage(Page<CheckpointContent> page, @Param("checkpointId") Integer  checkpointId, @Param("contentType") String contentType);

    @Select("select id from checkpoint_content  where id =#{id} ")
    List<Integer> findByid(CheckpointContent checkpointContent);

}
